import { createI18n } from 'vue-i18n'
import english from './language/en'
import chinese from './language/zh-cn'
const i18n = createI18n({
    legacy: false, //组合式api必须配置为false
    locale: 'zh-cn', //默认语言包
    fallbackLocale: 'zh-cn',
    messages: {
        'en': english,
        'zh-cn': chinese
    }
})
export default i18n